import {
	request
} from '../utils/request.js'
// 会员详情查询
export function memberGet(data) {
	return request({
		url: '/kumi-openapi/v1/mole/omni/member/get',
		method: 'POST',
		data: data
	})
}
// 会员注册
export function memberRegister(data) {
	return request({
		url: '/kumi-openapi/v1/mole/omni/member/register',
		method: 'POST',
		data: data
	})
}
//变更会员积分
export function changePoint(data) {
	return request({
		// url: '/kumi-openapi/v1/hammond/member/point/update',
		url: '/kumi-openapi/v1/pointStore/member/point/update',
		method: 'POST',
		data: data
	})
}

//查询订单列表
export function checkList(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/order/list',
		method: 'POST',
		data: data
	})
}
//查询会员积分变更记录
export function searchRecord(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/member/point/record',
		method: 'POST',
		data: data
	})

}
//会员信息修改
export function changeInf(data) {
	return request({
		url: '/kumi-openapi/v1/mole/omni/member/update',
		// /kumi-openapi/v1/mole/omni/member/update
		method: 'POST',
		data: data
	})

}
//修改手机号
export function changePho(data) {
	return request({
		url: '/kumi-openapi/v1/mole/member/phone/update',
		method: 'POST',
		data: data

	})
}
// 批量删除积分商品
export function goodsDelete(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/delete',
		method: 'POST',
		data: data
	})
}
// 查询积分商品列表
export function goodlistGet(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/list',
		method: 'POST',
		data: data
	})
}
// 查询积分商品列表
export function goodGet(productid) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId='+productid,
		method: 'GET',
		// data: data
	})
}
// 下单
export function submit(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/submit',
		method: 'POST',
		data: data
	})
}
// 查询订单详情
export function checkDetail (data) {
   return request({
		url: '/kumi-openapi/v1/pointStore/order/get',
		method: 'POST',
		data: data
	})
}
/*
// 获取积分商品--端午礼盒
export function goodsGetlh(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=2306232mS7RgeFve',
		method: 'GET',
		data: data
	})
}
// 获取积分商品--端午香囊
export function goodsGetxn(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=230623j9s4qVAAJY',
		method: 'GET',
		data: data
	})
}
// 获取积分商品--巧克力蛋糕
export function goodsGetdg(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=230623zgew9ucuk3',
		method: 'GET',
		data: data
	})
}
// 获取积分商品--黄酒
export function goodsGethj(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=230623h5r3qFceKS',
		method: 'GET',
		data: data
	})
} // 获取积分商品--龙舟模型
export function goodsGetmx(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=230623HPEny5d7zs',
		method: 'GET',
		data: data
	})
}
// 获取积分商品--粽子
export function goodsGetzz(data) {
	return request({
		url: '/kumi-openapi/v1/pointStore/goods/get?spuId=230623q3CXDM8Qdf',
		method: 'GET',
		data: data
	})
}
*/

